package lelouet.sh3d.plugins.sweetDatacenter.model;


public class Utils {

	public static final float U_IN_CM = 4.445f;

	public static int getBlueFromRGB(int RGBColor) {
		return RGBColor & 0xFF;
	}

	public static int getGreenFromRGB(int RGBColor) {
		return RGBColor >> 8 & 0xFF;
	}

	public static int getRedFromRGB(int RGBColor) {
		return RGBColor >> 16 & 0xFF;
	}

	public static int getRGBColor(int red, int green, int blue) {
		return red << 16 & 0xFF0000 | green << 8 & 0xFF00 | blue & 0xFF;
	}

}
